#PBAR_Zspec_GenerateCalibrationFile.py
#
#  Creates the gain calibration file.
#
#  5/1/2013, John Kwong
#  9/24/2013, JK, uses new version of the gain calibration calculator

import PBAR_Zspec
reload(PBAR_Zspec)
import numpy as np
# Location of data
basepath = r'C:\Users\jkwong\Documents\Work\PBAR\data'

countRange = np.array([0.5, 2.0])
binBounds = [20, 120]
rateLook = 1.0
binBaseline = 100.0

PBAR_Zspec.CreateGainCorrectionFile(basepath, 'GainCorrectionVer2.csv', countRange, binBounds, rateLook, binBaseline)